<template>
  <div ref="aaa">    
      <slot></slot>
  </div>
</template>

<script>
import BScroll from "better-scroll";

export default {
  name: "Scroll",
  data(){
    return {
      scroll: null,
    }
  },
  props: {
    probetype: {
      type: Number,
      default(){
        return 0
      }
    },
    pullupload: {
      type: Boolean,
      default(){
        return false
      }
    }
  },
  mounted: function(){
    this.scroll = new BScroll(this.$refs.aaa,{
      probeType: this.probetype,
      click: true,
      pullUpLoad: this.pullupload
    });
    // console.dir(scroll);
  },
  

  
}
</script>